package s19.ch22.ex2;

import java.awt.BorderLayout;
import java.awt.Button;
import java.awt.FlowLayout;
import java.awt.GridLayout;

import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JPanel;

public class MyBorderLayout {
	public static void main(String[] args) {

		JFrame jFrame = new JFrame();
		BorderLayout borderLayout = new BorderLayout(10, 10);
		jFrame.setLayout(borderLayout);
		jFrame.add(new JButton("ok"),BorderLayout.NORTH);
		jFrame.add(new JButton("cancel"),BorderLayout.SOUTH);
		jFrame.add(new JButton("west"),BorderLayout.WEST);
		jFrame.add(new JButton("east"),BorderLayout.EAST);
		jFrame.add(new JButton("center"),BorderLayout.CENTER);
		jFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
		jFrame.setSize(400, 200);
		jFrame.setVisible(true);

	}

}
